{template '_header'}
<div class="page-heading"> <h2>拼团快递助手</h2></div>
<div class="tabs-container">
	{template 'groups/exhelper/tabs'}
	<div class="tab-content ">
		<div class="tab-pane active" id="tab_printset">
			<form action="" method="get" class="form-horizontal" plugins="form">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="ewei_shopv2" />
				<input type="hidden" name="do" value="web" />
				<input type="hidden" name="r" value="groups.exhelper.short" />
				<input type="hidden" name="tab" value="short" />
				<div class="page-toolbar row m-b-sm m-t-sm">
					<div class="col-sm-4">

						<div class="input-group-btn">
							<button class="btn btn-default btn-sm" type="button" data-toggle='refresh'><i class='fa fa-refresh'></i></button>
							{ifp 'exhelper.short.edit'}
							<button class="btn btn-default btn-sm" type="button" data-toggle='batch' data-href="{php echo webUrl('groups/exhelper/shortedit')}"><i class='fa fa-circle-o'></i> 清空简称</button>
							{/if}

						</div>
					</div>

					<div class="col-sm-8 pull-right">
						<select name='status' class='form-control input-sm' style='width:100px;'>
							<option value='' {if $_GPC[ 'status']=='' }selected{/if}>全部状态</option>
							<option value='1' {if $_GPC[ 'status']=='1' }selected{/if}>上架</option>
							<option value='0' {if $_GPC[ 'status']=='0' }selected{/if}>下架</option>
						</select>

						<select name='shorttitle' class='form-control  input-sm' style='width:100px;'>
							<option value='' {if $_GPC[ 'shorttitle']=='' }selected{/if}>全部简称</option>
							<option value='1' {if $_GPC[ 'shorttitle']=='1' }selected{/if}>已填写</option>
							<option value='2' {if $_GPC[ 'shorttitle']=='2' }selected{/if}>未填写</option>
						</select>

						<div class="input-group">
							<input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="请输入关键词"> <span class="input-group-btn">
							<button class="btn btn-sm btn-primary" type="submit"> 搜索</button> </span>
						</div>

					</div>
				</div>
			</form>

			<form action="" method="post">
				<table class="table table-hover table-responsive">
					<thead>
					<tr>
						<th style="width:25px;">
							<input type='checkbox' />
						</th>
						<th>商品标题</th>
						<th style="width:250px;">商品简称{ifp 'exhelper.short.edit'}<small>(点击编辑)</small>{/if}</th>
						<th style="width:60px;">状态</th>
					</tr>
					</thead>
					<tbody>
					{loop $list $row}
					<td>
						<input type='checkbox' value="{$row['id']}" />
					</td>
					<td>
						{$row['title']}
					</td>
					<td>
						{ifp 'exhelper.short.edit'}
						<a href='javascript:;' data-toggle='ajaxEdit' data-href="{php echo webUrl('groups/exhelper/shortedit',array('id'=>$row['id']))}">
							{if empty($row['shorttitle'])}未填写{else}{$row['shorttitle']}{/if}
						</a>
						{else}
						{$row['shorttitle']}
						{/if}
					</td>

					<td>
						{if $row['status']>0}
						<span class='label label-primary'>上架</span>
						{else}
						<span class='label label-default'>下架</span>
						{/if}
					</td>

					</tr>
					{/loop}
					</tbody>
				</table>
				{$pager}
			</form>
		</div>
	</div>
</div>
{template '_footer'}